"use strict";
const common_vendor = require("../../common/vendor.js");
const composables_useManualTheme = require("../../composables/useManualTheme.js");
const __unplugin_components_1 = () => "../../node-modules/wot-design-uni/components/wd-button/wd-button.js";
const __unplugin_components_0 = () => "../../node-modules/wot-design-uni/components/wd-icon/wd-icon.js";
if (!Array) {
  const _component_wd_icon = __unplugin_components_0;
  const _component_wd_button = __unplugin_components_1;
  const _component_layout_tabbar_uni = common_vendor.resolveComponent("layout-tabbar-uni");
  (_component_wd_icon + _component_wd_button + _component_layout_tabbar_uni)();
}
const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
  __name: "index",
  setup(__props) {
    const router = common_vendor.H();
    const {
      theme,
      toggleTheme,
      currentThemeColor,
      showThemeColorSheet,
      themeColorOptions,
      openThemeColorPicker,
      closeThemeColorPicker,
      selectThemeColor
    } = composables_useManualTheme.useManualTheme();
    const isLimitEnabled = false;
    common_vendor.computed({
      get() {
        return theme.value === "dark";
      },
      set() {
        toggleTheme();
      }
    });
    function navigateTo(path) {
      // 如果是tabBar页面，使用switchTab
      if (path === '/pages/beauty-test/index') {
        common_vendor.index.switchTab({
          url: path
        });
      } else {
        router.push(path);
      }
    }
    return (_ctx, _cache) => {
      return common_vendor.e({
        a: isLimitEnabled
      }, {}, {
        c: common_vendor.p({
          name: "chat",
          size: "32rpx"
        }),
        d: common_vendor.o(($event) => navigateTo("/pages/love-clinic/index")),
        e: common_vendor.p({
          type: "primary",
          size: "small"
        }),
        f: common_vendor.p({
          name: "camera",
          size: "32rpx"
        }),
        g: common_vendor.o(($event) => navigateTo("/pages/beauty-test/index")),
        h: common_vendor.p({
          type: "primary",
          size: "small"
        }),
        i: common_vendor.p({
          name: "camera",
          size: "32rpx"
        }),
        j: common_vendor.o(($event) => navigateTo("/pages/calorie-camera/index")),
        k: common_vendor.p({
          type: "primary",
          size: "small"
        })
      });
    };
  }
});
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-83a5a03c"]]);
wx.createPage(MiniProgramPage);
